package com.ruoyi.system.service.construction;

import com.ruoyi.system.domain.construction.OrderTeam;
import com.ruoyi.system.domain.zhuangxiumain.shopMain.SupplierInfo;

import java.util.List;

/**
 * 施工队订单表
 *
 * @author 张少丛
 */
public interface OrderTeamService {

    /**
     * 查询施工队订单列表
     * @param orderTeam
     * @return
     */
    public List<OrderTeam> selectOrderTeamList(OrderTeam orderTeam, Long userId);

    /**
     * 根据ID查询施工队订单信息
     * @param orderTeamId
     * @return
     */
    public OrderTeam selectOrderTeamById(Long orderTeamId);

    /**
     * 添加施工队订单信息
     * @param orderTeam
     * @return
     */
    public int insertOrderTeam(OrderTeam orderTeam);

    /**
     * 修改施工队订单信息
     * @param orderTeam
     * @return
     */
    public int updateOrderTeam(OrderTeam orderTeam);

    /**
     * 取消订单
     * @param orderTeamId
     * @return
     */
    public int cancelOrderTeam(Long orderTeamId);

    /**
     * 确认完结订单
     * @param orderTeamId
     * @return
     */
    public int finishOrderTeam(Long orderTeamId);

    /**
     * 删除施工队订单信息
     * @param orderTeamId
     * @return
     */
    public int deleteOrderTeamById(Long orderTeamId);

    /**
     * 批量删除施工队订单信息
     * @param ids
     * @return
     */
    public int deleteOrderTeamByIds(Long[] ids);

    /**
     * 查询店铺列表
     * @param userId
     * @return
     */
    public List<SupplierInfo> selectSupplierList(Long userId);


    //TODO:超管查询施工队店铺订单信息
    public List<OrderTeam> selectSuperOrderTeamList(OrderTeam orderTeam);
}
